Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical issues can overwrite a successful upgrade record with an unrelated failure and lose accumulated per-record results when package processing throws, leaving incorrect or missing final statuses.
2 open issues
What changed in this PR
This PR corrects update-report routing and status sequencing across the client, platform strategy, and updater process.
Changes:
- Propagates poll/push report type independently of package
AppType. - Aggregates package outcomes per record with failure precedence and avoids reporting staged main-app updates as applied.
- Adds injectable asynchronous IPC, regression tests, and documentation clarifying success semantics.
| File | Description |
|---|---|
| tests/CoreTest/Strategy/ReportRoutingTests.cs | Tests routing, staging, shared-record failures, legacy contracts, and launch errors. |
| src/GeneralUpdate.Core/Strategy/UpdateStrategy.cs | Synchronizes report-type overrides with update context. |
| src/GeneralUpdate.Core/Strategy/ClientStrategy.cs | Propagates report type, adds injectable IPC, and adjusts status reporting. |
| src/GeneralUpdate.Core/Strategy/AbstractStrategy.cs | Aggregates results per record and routes reports using context. |
| src/GeneralUpdate.Core/Download/Reporting/IUpdateReporter.cs | Documents record sources and applied-success semantics. |
| docs/core-execution-flow.md | Updates IPC flow and reporting documentation. |
Review effort: Balanced
Comment on lines
+285
to
+289
| foreach (var record in recordStatuses) | ||
| { | ||
| try | ||
| { | ||
| await Reporter.ReportAsync(new UpdateReport(record.Key, record.Value, _configinfo.ReportType)).ConfigureAwait(false); |
Comment on lines
+1173
to
1174
| .ReportAsync(new Download.Reporting.UpdateReport(_mainRecordId != 0 ? _mainRecordId : _upgradeRecordId, | ||
| (int)Download.Reporting.UpdateStatus.Failure, _reportType)).ConfigureAwait(false); |
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Validation
Cross-repository follow-up
Push reports need the actual per-client push RecordId. The existing SignalR string callback does not automatically map push payloads to a download source, and validation IDs identify polling records. A future integration should consume the server's per-client RecordId and exercise the real GeneralSpace/Bowl path end-to-end.